package cn.factorybox;

import cn.factorybox.config.JwtProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-03-28 12:47
 */
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
@EnableFeignClients
public class FactoryboxAuthApplication {

    public static void main(String[] args) {
        SpringApplication.run(FactoryboxAuthApplication.class);
    }

    @Bean
    public JwtProperties jwtProperties() {
        return new JwtProperties();
    }
}
